Package jeresources.api.drop
Class PlantDrop
java.lang.Object
jeresources.api.drop.PlantDrop
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlantDrop(net.minecraft.world.item.ItemStack drop, float chance) Use this for registering seeds that have a chance less than one to dropPlantDrop(net.minecraft.world.item.ItemStack drop, int itemWeight) DON'T USE! This constructor is meant for registering grass Which get auto collected by NERPlantDrop(net.minecraft.world.item.ItemStack drop, int minDrop, int maxDrop) Use this for registering seeds that have a chance of dropping more than one time -
Method Summary
-
Constructor Details
-
PlantDrop
public PlantDrop(net.minecraft.world.item.ItemStack drop, int itemWeight) DON'T USE! This constructor is meant for registering grass Which get auto collected by NER- Parameters:
drop- the The drop anItemStackitemWeight- The Weight of the drop
-
PlantDrop
public PlantDrop(net.minecraft.world.item.ItemStack drop, float chance) Use this for registering seeds that have a chance less than one to drop- Parameters:
drop- The drop anItemStackchance- the chance as float
-
PlantDrop
public PlantDrop(net.minecraft.world.item.ItemStack drop, int minDrop, int maxDrop) Use this for registering seeds that have a chance of dropping more than one time- Parameters:
drop- The drop anItemStackminDrop- minimum of seeds droppedmaxDrop- maximum of seeds dropped
-
-
Method Details
-
getDrop
public net.minecraft.world.item.ItemStack getDrop() -
getWeight
public int getWeight() -
getMinDrop
public int getMinDrop() -
getMaxDrop
public int getMaxDrop() -
getChance
public float getChance() -
getDropKind
-